namespace KMS.Core
{
    using System.Collections.Generic;

    public class ExpressionCriteria : Criteria
    {
        public string Statemant { get; private set; }
        public Dictionary<string, object> Parameters { get; private set; }
        public ExpressionCriteria(string statemant, Dictionary<string, object> parameters = null)
        {
            this.Statemant = statemant;
            this.Parameters = parameters;
        }
        public override string BuildStatement()
        {
            return this.Statemant;
        }
        public override Dictionary<string, object> BuildParameters()
        {
            return this.Parameters ?? new Dictionary<string, object>();
        }
    }
}